package com.dtream.nacos.openfeig;

import com.dtream.nacos.entity.ExampleEntity;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

import javax.validation.Valid;
import java.util.List;

@Component
public class ExampleHystrix implements ExampleClient {
    @Override
    public ResponseEntity<List<ExampleEntity>> getClientUsersList() {
        return null;
    }

    @Override
    public ResponseEntity<ExampleEntity> getClientUsers(String id) {
        return null;
    }

    @Override
    public ResponseEntity<ExampleEntity> createUser(ExampleEntity users) {
        return null;
    }

    @Override
    public ResponseEntity<ExampleEntity> updateUser(String id, @Valid ExampleEntity user) {
        return null;
    }

    @Override
    public ResponseEntity<String> deleteUser(String id) {
        return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
    }
}
